#pragma once

#include "e2d/core/pch.h"


namespace e2d
{

	struct Entity;

	struct Scene;

	struct  EntityMap
	{
		std::string m_UUID{};

		e2d::Entity* m_Entity{ 0 };

		bool LoadFromScene(e2d::Scene* scene);
		
		std::string EntityName() const;

		EntityMap() = default;

		EntityMap(e2d::Entity* entity);

		void SetNull()
		{
			m_UUID.clear();
			m_Entity = 0;
		}
		explicit operator bool() const noexcept
		{
			return m_Entity;
		}

	};
}